/**
 * Desc :
 * Created by byte2 on 2016-12-09.
 */
import "./less/less/rsuite.less";
import "./less/css.css";
import "./less/css.less";
import "./less/add.css";
import "./less/animate.less";
import 'babel-polyfill';
import "./libs/polyfill.js";
import {Router, Route, IndexRoute, browserHistory} from "react-router";
import Home from "./containers/Home/";
import Class from "./containers/Class/";
import Activity from "./containers/Activity/";
import News from "./containers/News/";
import Notice from "./containers/Notice/";
import TodayTeach from "./containers/TodayTeach/";
import Homework from "./containers/Homework/";
import Duty from "./containers/Duty/";
import Schedule from "./containers/Schedule/";
import App from "./containers";
import Provider from "./stores";
import {Config} from "./libs/";


ReactDOM.render(
    (
        <Provider>
            <Router history={browserHistory}>
                <Route path={Config.ABSOLUTE_MENU.HOME} component={App}>
                    <IndexRoute component={Home}/>
                    <Route path={Config.ABSOLUTE_MENU.CLASS} component={Class}/>
                    <Route path={Config.ABSOLUTE_MENU.ACTIVITY} component={Activity}/>
                    <Route path={Config.ABSOLUTE_MENU.NEWS} component={News}/>
                    <Route path={Config.ABSOLUTE_MENU.NOTICE} component={Notice}/>
                    <Route path={Config.ABSOLUTE_MENU.TODAY_TEACH} component={TodayTeach}/>
                    <Route path={Config.ABSOLUTE_MENU.HOMEWORK} component={Homework}/>
                    <Route path={Config.ABSOLUTE_MENU.DUTY} component={Duty}/>
                    <Route path={Config.ABSOLUTE_MENU.SCHEDULE} component={Schedule}/>
                </Route>
            </Router>
        </Provider>
    ),
    document.getElementById('content')
);